﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using RN.ERP.BLL;
using RN.ERP.DTO;
using Newtonsoft.Json;
using RN.ERP.BLL.Material;

namespace RN.ERP.Web.Material.Material
{
    public partial class MaterialDetail1 : System.Web.UI.Page
    {
        MaterialBLL bll = new MaterialBLL();


        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                InitPage();
            }
        }

        private void InitPage()
        {
            string optType = Request.QueryString["type"];
            hdnType.Value = optType;
            switch (optType)
            {
                case "2":
                    InitViewMode();
                    break;
                default:
                    break;
            }
        }

        private void InitViewMode()
        {

        }

        protected void lbtnSave_Click(object sender, EventArgs e)
        {
            //bll.AddMaterial
        }
    }
}